/*
 *------------------------------------------------------------------------------
 * @File      :    ei_mai_nna.h
 * @Date      :    2021-4-8
 * @Author    :    lomboswer <lomboswer@lombotech.com>
 * @Brief     :    Media Interface for MADP(Media Development Platform).
 *
 * Copyright (C) 2020-2021, LomboTech Co.Ltd. All rights reserved.
 *------------------------------------------------------------------------------
 */

#ifndef __EI_NNA_HUMFACE_DET_DEFINE_H__
#define __EI_NNA_HUMFACE_DET_DEFINE_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "ei_nna_define.h"
#include "ei_nna_fd_define.h"
#include "ei_nna_hd_define.h"

#define DEFAULT_NNA_HUMFACE_DET_CONFIG_MAX_DET_CNT (30)
#define DEFAULT_NNA_HUMFACE_DET_CONFIG_MAX_PIX (1024)
#define DEFAULT_NNA_HUMFACE_DET_CONFIG_MIN_PIX (32)

#define DEFAULT_NNA_HUMFACE_DET_CONFIG_IOU_THRESH (45)
#define DEFAULT_NNA_HUMFACE_DET_CONFIG_CONF_THRESH (70)

typedef struct eiNNA_HUMFACES_S {
	EI_NNA_HUMANS_S stHumans;
	EI_NNA_FACES_S stFaces;
} EI_NNA_HUMFACES_S;

typedef struct eiNNA_HUMFACE_DET_CONFIG_S {
	EI_CHAR *ModelRootPath;
	EI_S32 ModelType;

	EI_S32 s32EnFaceDet;
	EI_S32 s32EnHumDet;
	EI_S32 s32Width;
	EI_S32 s32Height;

	EI_S32 s32MaxPix;
	EI_S32 s32MinPix;
	EI_S32 s32MaxDetCnt;
	EI_S32 s32IouThresh;
	EI_S32 s32ConfThresh;
	EI_S32 s32Roi[4];

	EI_NNA_AX_FREQ_S stFreq;
} EI_NNA_HUMFACE_DET_CONFIG_S;

typedef EI_S32 NNA_HFD_CHN;
typedef EI_NNA_HUMFACES_S EI_NNA_DST_HFD_S;
typedef EI_NNA_HUMFACE_DET_CONFIG_S EI_NNA_HFD_CONFIG_S;

#ifdef __cplusplus
}
#endif

#endif //__EI_NNA_HUMFACE_DET_DEFINE_H__
